﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Data;
using System.Reflection;
using System.Runtime.Serialization;
using System.Data.Objects;

namespace GTServices.Entities
{
    public class GrepResult : BaseEntity
    {
        [Key, Column(Order = 0), DatabaseGenerated(System.ComponentModel.DataAnnotations.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public GrepRequest GrepRequest { get; set; }

        public virtual IList<MatchInfo> MatchInfos { get; set; } 
        
        public DateTime TimeCompleted;

        public GrepResult()
        {
            MatchInfos = new List<MatchInfo>();
        }

        public override void Validate()
        {
            throw new NotImplementedException();
        }
    }
}
